Skip to content

Conversation

@Anupal
Copy link
Owner

@Anupal Anupal commented Jan 23, 2026

Introduce icon flags to use custom icons. Basic idea is that not all machines will have Nerdfonts installed or users might want customization.

CPU

  • Use flags to display a cpu and percent icons. Same flags can be used to provide overrides.
  • By default, icons are hidden
$ stmx cpu --help
Description:
  get current cpu usage

Usage:
  stmx cpu [options]

Options:
  -i, --show-icon <show-icon>        show icon (optionally provide custom icon)
  -p, --show-percent <show-percent>  show percent icon (optionally provide custom icon)
  -?, -h, --help                     Show help and usage information

Memory

  • Use flags to display a memory and percent icons. Same flags can be used to provide overrides.
  • Percent is now a unit type and also the default value.
  • By default, icons are hidden
$ stmx memory --help
Description:
  get current memory usage

Usage:
  stmx memory [options]

Options:
  -i, --show-icon <show-icon>                                                                                 show icon (optionally provide custom icon)
  -p, --show-percent <show-percent>                                                                           show percent icon (optionally provide custom icon)
  -u, --unit <Bytes|GibiBytes|GigaBytes|KibiBytes|KiloBytes|MegaBytes|MibiBytes|Percent|TeraBytes|TibiBytes>  Select the memory unit for display [default: Percent]
  -?, -h, --help                                                                                              Show help and usage information

Battery

  • Use flags to display battery and percent icons.
  • Percent flag can be used to provide an override.
  • I won't support override for battery and charging yet. It will be implemented as a separate feature.
  • By default, icons are hidden
$ stmx battery --help
Description:
  get current battery status

Usage:
  stmx battery [options]

Options:
  -i, --show-icon                    show battery capacity icon
  -s, --show-status-icon             show battery status icon
  -p, --show-percent <show-percent>  show percent icon (optionally provide a custom icon)
  -?, -h, --help                     Show help and usage information

@Anupal Anupal linked an issue Jan 23, 2026 that may be closed by this pull request
@Anupal Anupal force-pushed the feature/allow-icon-overrides-using-cli-args branch from 636100a to 8ae75b9 Compare February 3, 2026 19:39
@Anupal Anupal self-assigned this Feb 3, 2026
@Anupal Anupal marked this pull request as ready for review February 3, 2026 21:07
@Anupal Anupal changed the title Allow icon overrides using cli args Allow icon overrides using cli args and formalize flag names Feb 3, 2026
@Anupal Anupal merged commit c6b0d20 into main Feb 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alllow icon overrides using cli args

1 participant